﻿using CPAIS.Model;
using CPAIS.Updater;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace CPAIS.LogParser
{
    public interface ILogParserWithXmlReader
    {
        /// <summary>
        /// Gets the XmlTag.
        /// </summary>
        string XmlTag { get; }

        /// <summary>
        /// Parses the event log by XmlReader, the reader has read the root tag 'XmlTag' already.
        /// </summary>
        /// <param name="logModel">LogModel instance</param>
        /// <param name="reader">Xml reader object</param>
        /// <param name="updater">State updater</param>
        void Parse(LogModel logModel, XmlReader reader, StateUpdater updater);
    }
}
